import Mock from 'mockjs'

export const Allcategory=[
    {
        categoryid:1,
        note:'水果'
    },
    {
        categoryid:2,
        note:'蔬菜'
    },
    {
        categoryid:3,
        note:'海鲜'
    },
    {
        categoryid:4,
        note:'肉禽蛋'
    },
]

export const fruitsData = Mock.mock({
    'list|20': [{
        id: '@guid',
        title: '水果' + '@ctitle(1,3)',
        'price|9-99': 0,
        'saleNum|100-999': 0,
        image: '@image(150x150,@color)',
        category:1
    }],
    total: 321,
    nextIndex: 20,
    isEnd: false
})

export const vegData = Mock.mock({
    'list|20': [{
        id: '@guid',
        title: '蔬菜' + '@ctitle(1,3)',
        'price|9-99': 0,
        'saleNum|100-999': 0,
        image: '@image(150x150,@color)',
        category:2
    }],
    total: 416,
    nextIndex: 20,
    isEnd: false
})
export const seafoodData = Mock.mock({
    'list|20': [{
        id: '@guid',
        title: '海鲜' + '@ctitle(1,3)',
        'price|9-99': 0,
        'saleNum|100-999': 0,
        image: '@image(150x150,@color)',
        category:3
    }],
    total: 205,
    nextIndex: 20,
    isEnd: false
})
export const meatData = Mock.mock({
    'list|20': [{
        id: '@guid',
        title: '肉禽蛋' + '@ctitle(1,3)',
        'price|9-99': 0,
        'saleNum|100-999': 0,
        image: '@image(150x150,@color)',
        category:4
    }],
    total: 321,
    nextIndex: 20,
    isEnd: false
})
